package com.gateway.security.common.extract;

import com.gateway.security.common.authentication.client.ClientAuthenticationToken;
import org.springframework.web.server.ServerWebExchange;

/**
 * @program: api-gateway
 * @description:
 * @author: YuKai Fan
 * @create: 2025/2/12 11:35
 **/
public interface ClientExtractor {

    /**
     * 提取客户端信息
     * @param exchange
     * @param token
     * @return
     */
    ServerWebExchange extract(ServerWebExchange exchange, ClientAuthenticationToken token);
}
